package com.nativetalk.dao;

import com.nativetalk.bean.demand.TdNtDemand;
import com.nativetalk.bean.dict.TsNtDictDemand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by lizhun on 16/8/27.
 */
@MyBatisRepository
public interface TdNtDemandDao {
    /**
     * @Purpose  查找用户需求条数
     * @version  3.2
     * @author   lizhun
     * @param    memb_id
     * @return   int
     */
    public int findTdNtDemand(int memb_id);
    /**
     * @Purpose  添加用户需求
     * @version  3.2
     * @author   lizhun
     * @param    tdNtDemand
     * @return   void
     */
    public void insertTdNtDemand(TdNtDemand tdNtDemand);

    public void addCheckCourseCategoryTrail(@Param("memb_id") Integer memb_id, @Param("cate_id") Integer cate_id);

    public int searchTrailCategory(@Param("memb_id") Integer memb_id);

    public List<TsNtDictDemand> findDemandDetail();
}
